<!DOCTYPE>
<html>
@include('common.head')
<body>
<div class="mantorder" id="j-mantOrder">
	<div class="mant-title">
		<h4>您的订单中包含普通商品和危化品，已自动帮您拆成 <span>{{count($rs['order_list'])}}</span>个订单，请先去完善合同信息</h4>
	</div>
	<div class="ordertball table-responsive margin-top-20">
		<div class="mant-list">
			@foreach ($rs['order_list'] as $result)
			        <div class="mant-fitems">
						<div class="row-fluid clearfix">
							<ul class="clearfix margin-bottom-10">
								<li class="span4">订单编号：{{$result->order_id}}</li>
								<li class="span4">合同编号：TODO@Daniel</li>
								<li class="span4">订单类型：@switch($result->property)
															    @case('detonate')
															        易制爆
															        @break
															    @case('poison')
															        易制毒
															        @break
															    @default
															        普通
															@endswitch
								</li>
							</ul>
						</div>
						<div class="mant-second-items">
							<table class="table table-bordered tablelist" id="dataTableDetail">
				                <thead class="tbhead">
				                    <tr>
				                        <th class="t1">
				                        	<p>库存编码</p>
				                        </th>
				                        <th class="t1">
				                        	<p>商品名称</p>
				                        </th>
				                        <th class="t1">
				                        	<p>产品属性</p>
				                        </th>
				                        <th class="t1">
				                        	<p>规格</p>
				                        </th>
				                        <th class="t1">
				                        	<p>单位</p>
				                        </th>
				                        <th class="t1">
				                        	<p>数量</p>
				                        </th>
				                        <th class="t1">
				                        	<p>含税单价</p>
				                        </th>
				                        <th class="t1">
				                        	<p>小计</p>
				                        </th>
				                    </tr>
				                </thead>
				                <tbody class="tbbody">
				                	@foreach ($result->product_list as $product)
				                    <tr>
				                        <td>{{$product['detail']->stock_num}}</td>
				                        <td>{{$product['detail']->name}}</td>
				                        <td>@switch($product['detail']->property)
											    @case('detonate')
											        易制爆
											        @break
											    @case('poison')
											        易制毒
											        @break
											    @default
											        普通
											@endswitch
										</td>
				                        <td>{{$product['detail']->size}}{{$product['detail']->standard}}</td>
				                        <td>{{$product['detail']->pack}}</td>
				                        <td>{{$product['num']}}</td>
				                        <td>{{$product['price']}}</td>
				                        <td>{{$product['total']}}</td>
				                    </tr>
				                    @endforeach
				                </tbody>
				          </table>
						</div>
						<div class="mant-allpay">订单总额:￥{{$result->total_price}}</div>
					</div>
			@endforeach
			<!--begin-->
		</div>
	</div>
</div>
</body>
</html>